﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace WLYT.Domain.Entries
{
    ///<summary>
    ///订单
    ///</summary>
    [SugarTable("Order")]
    public partial class Order
    {
           public Order(){

            this.OrderNo =Convert.ToString("");
            this.OrderType =Convert.ToInt32("0");
            this.Type =Convert.ToInt32("0");
            this.Priority =Convert.ToInt32("0");
            this.IsDelivery =false;
            this.Status =Convert.ToInt32("0");
            this.TypeText =Convert.ToString("");
            this.Line =Convert.ToString("");
            this.Lane =Convert.ToString("");
            this.MapCode =Convert.ToString("");
            this.CreateTime =DateTime.Now;
            this.Export =Convert.ToString("");

           }
           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
           public int Id {get;set;}

           /// <summary>
           /// Desc:单号
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string OrderNo {get;set;}

           /// <summary>
           /// Desc:出入库类型（0：入库，1：出库，2：移库）
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public int OrderType {get;set;}

           /// <summary>
           /// Desc:订单类型（1消耗拉动;2领料;3强补;4离线备料;5快入快出;6单机模式）
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public int Type {get;set;}

           /// <summary>
           /// Desc:优先级（1低；2中；3正常；4紧急）
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public int Priority {get;set;}

           /// <summary>
           /// Desc:是否配送
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public bool IsDelivery {get;set;}

           /// <summary>
           /// Desc:状态
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public int Status {get;set;}

           /// <summary>
           /// Desc:类型信息
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string TypeText {get;set;}

           /// <summary>
           /// Desc:产线
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string Line {get;set;}

           /// <summary>
           /// Desc:轨道号
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string Lane {get;set;}

           /// <summary>
           /// Desc:地图点位
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string MapCode {get;set;}

           /// <summary>
           /// Desc:创建时间
           /// Default:DateTime.Now
           /// Nullable:False
           /// </summary>           
           public DateTime CreateTime {get;set;}

           /// <summary>
           /// Desc:出库时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? OutTime {get;set;}

           /// <summary>
           /// Desc:运输开始时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? TransportTime {get;set;}

           /// <summary>
           /// Desc:完成时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? CompleteTime {get;set;}

           /// <summary>
           /// Desc:流水线出口
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string Export {get;set;}

    }
}
